package com.kayt.cyberBar.company.business.entity.po;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.persistence.*;


/**
 * The persistent class for the b_company_material_base_in database table.
 * 
 */
@Entity
@Table(name="b_company_material_base_in")
@NamedQuery(name="BCompanyMaterialBaseIn.findAll", query="SELECT b FROM BCompanyMaterialBaseIn b")
public class BCompanyMaterialBaseIn implements Serializable {
	private static final long serialVersionUID = 1L;
	private Long id;
	private String code;
	private String count;
	private String createTime;
	private String inNo;
	private String mainCode;
	private String price;
	private String sequence;
	private String standardCode;
	private String statusCode;
	private String unitCountCode;
	private String updateTime;
	private String productionDate;
	
	private List<BCompanyMaterialBaseLevel> levelList = new ArrayList();
	private List<BCompanyMaterialBasePlace> placeList = new ArrayList();

	public BCompanyMaterialBaseIn() {
	}


	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}


	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}


	public String getCount() {
		return this.count;
	}

	public void setCount(String count) {
		this.count = count;
	}


	@Column(name="CREATE_TIME")
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}


	@Column(name="IN_NO")
	public String getInNo() {
		return this.inNo;
	}

	public void setInNo(String inNo) {
		this.inNo = inNo;
	}


	@Column(name="MAIN_CODE")
	public String getMainCode() {
		return this.mainCode;
	}

	public void setMainCode(String mainCode) {
		this.mainCode = mainCode;
	}


	public String getPrice() {
		return this.price;
	}

	public void setPrice(String price) {
		this.price = price;
	}


	public String getSequence() {
		return this.sequence;
	}

	public void setSequence(String sequence) {
		this.sequence = sequence;
	}


	@Column(name="STANDARD_CODE")
	public String getStandardCode() {
		return this.standardCode;
	}

	public void setStandardCode(String standardCode) {
		this.standardCode = standardCode;
	}


	@Column(name="STATUS_CODE")
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}

	@Column(name="PRODUCTION_DATE")
	public String getProductionDate() {
		return productionDate;
	}


	public void setProductionDate(String productionDate) {
		this.productionDate = productionDate;
	}


	@Column(name="UNIT_COUNT_CODE")
	public String getUnitCountCode() {
		return this.unitCountCode;
	}

	public void setUnitCountCode(String unitCountCode) {
		this.unitCountCode = unitCountCode;
	}


	@Column(name="UPDATE_TIME")
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}


	@OneToMany(targetEntity = BCompanyMaterialBaseLevel.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "in")
	public List<BCompanyMaterialBaseLevel> getLevelList() {
		return levelList;
	}


	public void setLevelList(List<BCompanyMaterialBaseLevel> levelList) {
		this.levelList = levelList;
	}


	@OneToMany(targetEntity = BCompanyMaterialBasePlace.class, cascade = CascadeType.ALL, fetch = FetchType.LAZY, orphanRemoval = true, mappedBy = "in")
	public List<BCompanyMaterialBasePlace> getPlaceList() {
		return placeList;
	}


	public void setPlaceList(List<BCompanyMaterialBasePlace> placeList) {
		this.placeList = placeList;
	}

}